home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16143 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: trib.apple.com!usenet
  2. From: Amir <Amir@bayarea.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: overriding non-virtual functions
  5. Date: Tue, 09 Apr 1996 11:10:46 -0700
  6. Organization: Apple Computer, Inc., Cupertino, California
  7. Message-ID: <316AA826.F69@bayarea.net>
  8. References: <316964B9.F50@itsa.ucsf.edu>
  9. NNTP-Posting-Host: a17-128-201-48.apple.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (Macintosh; I; PPC)
  14.  
  15. Aneil Mallavarapu wrote:
  16. > I need to override a non-virtual function declared in a base class.
  17. > .....
  18.  
  19. Well, if NMfunc is not virtual, that means that when 
  20. NMCallIt call it, the calling address is computed statically
  21. at compile time, not at run time. If you can't change NMfunc
  22. nor NMCallIt, it seems to me there is nothing you can do
  23. about which method is called from NMCallIt.
  24.  
  25.  
  26.  
  27. Amir
  28.  
  29. -- 
  30.  
  31.                     \\||||//
  32.                     \ o  o /
  33. ______________.ooO__(  ()  )__Ooo._______________________________
  34.  
  35.    Amir Deutel                  http://www.bayarea.net/~amir/
  36.  
  37.                  .oo0O   O0oo.  Work: Amir.D@AppleLink.Apple.com
  38.                  (   )   (   )  Home: Amir@bayarea.net
  39. __________________\ (_____) /____________________________________
  40.                    \_)   (_/
  41.